LCOV。信息具有SF的绝对路径 | 您所在的位置:网站首页 › svn被锁 cleanup没用 › LCOV。信息具有SF的绝对路径 |
百度翻译此文
有道翻译此文
问题描述
I need to have relative path as value of SF: parameter in the lcov.info file generated by karma coverage. This is to enable SonarQube to gather the info to display the coverage. Currently, the SF parameter is having complete absolute path , e.g. c:\abc\xyz....\src\bar\foo.js I need to have SF: src\bar\foo.js Is there a way to achieve this? 推荐答案Unfortunately it is still impossible out of the box. To fix the issue you can either: use istanbul merged with this request, process the output file using tools like sed (example), generate the report from the same machine that Sonar scanning is performed (original advice). |
CopyRight 2018-2019 实验室设备网 版权所有 |